-- GENERATED SPELL FOR [Crimson Battle Mage] --


function spell0_10425(pUnit, Event) --@Arcane Explosion,Self--
pUnit:FullCastSpellOnTarget(15253,pUnit)
pUnit:RegisterEvent('Sorts_10425', 1500, 1)
end

function spell1_10425(pUnit, Event) --@Blast Wave,Self--
pUnit:FullCastSpellOnTarget(17145,pUnit)
pUnit:RegisterEvent('Sorts_10425', 6279, 1)
end

function Sorts_10425(pUnit, Event)
local choix_sorts_10425 = math.random(0, 1)
if choix_sorts_10425 == 0 then
pUnit:RegisterEvent('spell0_10425', 1, 1)
end
if choix_sorts_10425 == 1 then
pUnit:RegisterEvent('spell1_10425', 1, 1)
end
end

function mob10425_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10425', math.random(1500, 3000), 1)
end

function mob10425_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10425_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10425_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10425, 1, 'mob10425_Action')
RegisterUnitEvent(10425, 2, 'mob10425_Leave')
RegisterUnitEvent(10425, 3, 'mob10425_Kill')
RegisterUnitEvent(10425, 4, 'mob10425_Die')
